$(document)
.ready(function(){
	 // Setup html5 version       
    function plupload(){  
        $("#uploader").pluploadQueue({           
            // General settings           
            runtimes : 'flash,html5,gears,browserplus,silverlight,html4',           
            url : "upload.do",    
            //unique_names: true,  
            chunk_size : '1mb',           
            //rename : true,  
            dragdrop: true,  
            filters : {               
                // Maximum file size               
            	  max_file_size : '2048kb', //最大只能上传100kb的文件
                  prevent_duplicates : true ,//不允许队列中存在重复文件
                // Specify what files to browse for  
                mime_types: [  
                    {title : "Image files", extensions : "jpg,gif,png"},   
                    {title : "Zip files", extensions : "zip"}  
                ]  
            },             
            // Resize images on clientside if we can           
            resize: {               
                width : 200,                
                height : 200,                
                quality : 90,               
                crop: true   
                // crop to exact dimensions           
            },             // Flash settings           
            flash_swf_url : '<%=request.getContextPath()%>/manage/js/plupload/Moxie.swf',                 
            // Silverlight settings           
            silverlight_xap_url : '<%=request.getContextPath()%>/manage/js/plupload/Moxie.xap' ,     
            // 参数  
            multipart_params: {'user': 'Rocky', 'time': '2012-06-12'}  
      
        });  
    }  
      
    plupload();  
      
    $('#Reload').delegate($(this),"click",function(){  
        plupload();  
    });  


	
});